import wx

def on_button_click(event):
    print("Button clicked!")

app = wx.App()
frame = wx.Frame(None, title="My First GUI App")
button=wx.Button(frame,label="Click me")
sizer = wx.BoxSizer(wx.VERTICAL)
sizer.Add(button,0, wx.ALIGN_CENTER|wx.ALL, 5)
frame.SetSizer(sizer)
button.Bind(wx.EVT_BUTTON, on_button_click)
frame.Show(True)
app.MainLoop()